import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:super_person_app/utils/storage.dart';

import '../../routes/app_routes.dart';
import 'login_logic.dart';

class LoginPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final logic = Get.find<LoginLogic>();
    final state = Get.find<LoginLogic>().state;

    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        elevation: 0,
        title: Text("login"),
      ),
      body: Column(
        children: [
          ElevatedButton(onPressed: () {
            JSpUtil.setString("access_token", "12312312");
            Get.offAndToNamed(Routes.frame);
          }, child: Text("login"))
        ],
      ),
    );
  }
}
